/**
 * Created by Administrator on 2017-07-25.
 */
var modelAlgorithmTemplete = require('html!./model_algorithm_setting.html');
require('./modelAlgorithm.less');
module.exports = {
  template: modelAlgorithmTemplete,
  data:function(){
    return{
      modelId:'',
      userId:localStorage.getItem('userId')
    }
  },
  created:function(){
    this.modelId = this.$route.query.modelId;
    this.router.go(0);
    $(document).ready(function(){
      var lay = null;
      $('body').delegate('.go-detail','click',function(){
        var $this = $(this);
        lay = layer.open({
          type: 1,
          title: false,
        /*  offset: '120px', //具体配置参考：offset参数项*/
          content: $('#details'),
          area: ['700px', '540px'],
          closeBtn: 0,
          shade: 0 //不显示遮罩
        });
      });
      $('.x-span').bind('click',function(){
        layer.close(lay);
      })
    });
  },
  beforeMount:function(){

  },
  updated:function(){
    //this.initCommonModel();
  },
  methods:{
      uploadData:function () {
        var me = this;
        me.$router.replace({ path: '/product/modelImportData', query: { modelId: this.modelId }});
      }
  }
}
